Skip to content

test(jsonfilter): add unit tests for BuildEntSelectorFromJSONFilter#2942

Merged
jiparis merged 1 commit intochainloop-dev:mainfrom
matiasinsaurralde:feat/jsonfilter-tests
Mar 27, 2026
Merged

test(jsonfilter): add unit tests for BuildEntSelectorFromJSONFilter#2942
jiparis merged 1 commit intochainloop-dev:mainfrom
matiasinsaurralde:feat/jsonfilter-tests

Conversation

@matiasinsaurralde
Copy link
Copy Markdown
Contributor

Summary

Adds table-driven unit tests for the BuildEntSelectorFromJSONFilter function in pkg/jsonfilter.

Tests cover validation errors (missing column/operator), all three operators (eq, neq, in), nested field paths, whitespace trimming for the in operator, and type error cases.

Signed-off-by: Matías Insaurralde <matias@chainloop.dev>
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@jiparis jiparis merged commit 973d3a3 into chainloop-dev:main Mar 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants